package com.yanqu.road.server.logic.bag;

import com.yanqu.road.entity.bag.UseGoodsResult;
import com.yanqu.road.entity.config.goods.GoodsInfo;
import com.yanqu.road.entity.player.UserBeautyData;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.player.BeautyModule;

public class UseRecoverBeautyEnergy extends BaseUseGoods {

    public UseRecoverBeautyEnergy(GamePlayer player, GoodsInfo goodsInfo, long param) {
        super(player, goodsInfo, param);
    }

    @Override
    int checkUse(long count) {
        return 0;
    }

    @Override
    UseGoodsResult executeUse(long count) {
        player.getModule(BeautyModule.class).recoverEnergy(goodsInfo, count);
        return new UseGoodsResult();
    }
}
